<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="crm.model.Recepit_description"%>
<%@page import="java.util.Collection"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Iterator"%>
<%@page import="crm.control.EmployeesControl"%>
<%@page import="crm.control.RecepitDescriptionControl"%>
<%@page import="crm.util.ParamUtil"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="../../../resources/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../resources/css/inner.css" type="text/css" media="screen" />
<style type='text/css'>
	p{width:90%; margin:0 auto;}
	.content{width:90%; margin:6px auto; border-bottom:1px solid #ccc; padding:4px 0;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
       <%
            request.setCharacterEncoding("UTF-8");
            Recepit_description rd = new Recepit_description();
            int recepitId=ParamUtil.getInt(request,"id");
            System.out.println(recepitId);
       
        %>
        
<form>
      <%
           Collection description=new ArrayList();
           description = RecepitDescriptionControl.getAllRecepitDescriptions(recepitId);
           Iterator iterator = description.iterator();
           while(iterator.hasNext()){
           Recepit_description r=(Recepit_description)iterator.next();
       %>
       <p><%=EmployeesControl.getEmpolyeesById(r.getFollow_person_id()).getName()%>(<%=r.getDate() %> )</p>
        <div class='content'><%=r.getContent() %></div>      
       <%} %>
<a class='button' href="recepit_description_add.jsp?id=<%=recepitId %>">添加跟进信息</a>
</form>
</body>
</html>